export type OverTimeModel = {
  id: string | number //id
  totalCount: number //列表个数
  list: any //列表
  fileList: any //附件列表
  entityId: string //流程id
  workFlowList: any
}

const api: ApiConfig = {
  // 我的用餐-列表
  diningList: {
    method: 'GET',
    url: '/oa/dining/dining/list'
  },
  // 我的用餐-新增
  diningAdd: {
    method: 'POST',
    url: '/oa/dining/dining/save'
  },
  // 我的用餐-修改
  diningUpdate: {
    method: 'POST',
    url: '/oa/dining/dining/update'
  },
  // 我的用餐-详情
  diningInfo: {
    method: 'GET',
    url: '/oa/dining/dining/info/:id'
  },
  // 我的用餐-撤回
  workTimeRevoke: {
    method: 'POST',
    url: '/process/business/revokeProcessOrder'
  },
  // 我的用餐-删除
  workTimeDelete: {
    method: 'POST',
    url: '/process/business/revokeProcessOrder'
  },
  // 我的用餐-部门列表
  diningDeptList: {
    method: 'GET',
    url: '/oa/dining/dining/deptList'
  },
  // 我的用餐-全馆列表
  diningAllList: {
    method: 'GET',
    url: '/oa/dining/dining/allList'
  },
  // 接待部门列表导出excel
  deptExport: {
    method: 'GET',
    url: '/oa/dining/dining/deptExport',
    responseType: 'blob'
  },
  // 接待全馆列表导出excel
  diningListExport: {
    method: 'GET',
    url: '/oa/dining/dining/diningListExport',
    responseType: 'blob'
  },
  // 导出pdf
  diningExport: {
    method: 'GET',
    url: '/oa/dining/dining/diningExport',
    responseType: 'blob'
  },
}

export default api
